import request from '@/utils/request'
// 场景化_添加/编辑
export function setSceneInfo(data) {
    const formData = new URLSearchParams();
    for (const key in data) {
        if (data.hasOwnProperty(key)) {
            formData.append(key, data[key]);
        }
    }
    return request({
        url: '/joining/busin.Scene/setInfo',
        method: 'post',
        data: formData,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
        }
    })
}
// 场景化_商品列表(全部，不分页)
export function getGoodsLists(query) {
    return request({
        url: '/joining/busin.Scene/getGoodsLists',
        method: 'post',
        params: query
    })
}
// 场景化_列表
export function getSceneLists(query) {
    return request({
        url: '/joining/busin.Scene/getLists',
        method: 'post',
        params: query
    })
}
// 场景化_详情
export function getSceneInfo(query) {
    return request({
        url: '/joining/busin.Scene/getInfo',
        method: 'post',
        params: query
    })
}
// 场景化_启用/禁用
export function setSceneStatus(query) {
    return request({
        url: '/joining/busin.Scene/setStatus',
        method: 'post',
        params: query
    })
}
// 场景化_删除
export function setSceneDel(query) {
    return request({
        url: '/joining/busin.Scene/setDel',
        method: 'post',
        params: query
    })
}
// 场景化_排序
export function setSceneSort(query) {
    return request({
        url: '/joining/busin.Scene/setSort',
        method: 'post',
        params: query
    })
}
// 场景化_商品分类(一级/二级)列表
export function getSceneCateLists(query) {
    return request({
        url: '/joining/busin.Scene/getCateLists',
        method: 'post',
        params: query
    })
}